n = input().split()
for i in range(0,len(n)):
    n[i] = str(int(n[i]) ** 2)
print(*n[::-1])